package com.elm.service;

import java.util.List;
import com.elm.po.DeliveryAddress;

public interface DeliveryAddressService {
	public List<DeliveryAddress> getDeliveryAddressByUserId(int userId);

	public DeliveryAddress saveDeliveryAddress(DeliveryAddress deliveryAddress);		//每一次新增address时，将其isdefault改为1

	public DeliveryAddress getDeliveryAddressById(Integer daId);

	public DeliveryAddress updateDeliveryAddress(DeliveryAddress deliveryAddress);

	public int removeDeliveryAddress(Integer daId);
	
	public DeliveryAddress setDefaultAddress(Integer daId);		//在set的同时将该用户的剩余address的isdefault值设为0
} 